Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not trigger search when touch on popup clickable components #1427

Merged
merged 10 commits into from
Sep 19, 2024

Conversation

khaitruong922
Copy link

Fixes #1418

Not sure if this is the cleanest solution, but the only way to know when to ignore the search on the gloss-link is to check if touch pointer type triggers the search and add the exclude selectors.

@khaitruong922 khaitruong922 requested a review from a team as a code owner September 17, 2024 16:35
@Kuuuube Kuuuube added kind/enhancement The issue or PR is a new feature or request area/ui-ux The issue or PR is related to UI/UX/Design labels Sep 17, 2024
jamesmaa
jamesmaa previously approved these changes Sep 18, 2024
Copy link
Collaborator

@jamesmaa jamesmaa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm fine with hacky if there's no other way to do it and if we document what the hack is

*/
_createExcludeSelectorForPointerType(excludeSelector, pointerType) {
if (pointerType === 'touch') {
const extraSelector = '.gloss-link,.gloss-link *';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add a comment here that says what this is trying to accomplish?

@khaitruong922 khaitruong922 changed the title Not trigger search when touch on popup link Not trigger search when touch on popup clickable components Sep 19, 2024
@jamesmaa jamesmaa added this pull request to the merge queue Sep 19, 2024
Merged via the queue into yomidevs:master with commit f7563c5 Sep 19, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ui-ux The issue or PR is related to UI/UX/Design kind/enhancement The issue or PR is a new feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Disable scanning on pressing on a link inside a dict (Android)
3 participants